public class test1 {
    static void main() {
        int dividend =10 ;
        int divisor = 3;
        int count = 0;
        while (dividend >= divisor) {
          dividend = dividend - divisor;
        count++;
        }
        System.out.println("余数为"+dividend);
        System.out.println("商为"+count);
    }
}
